import request from '@/utils/request'

// 获取渠道
export function getCompany(data) {
  return request({
    url: 'externalApi/OaVisit/company',
    method: 'post',
    data
  })
}

// 获取上门列表
export function todayList(data) {
  return request({
    url: 'externalApi/OaVisit/todayList',
    method: 'post',
    data
  })
}

// 获取用户
export function getUser(data) {
  return request({
    url: 'externalApi/OaVisit/getUser',
    method: 'post',
    data
  })
}

// 保存录音数据
export function saveRecord(data) {
  return request({
    url: 'externalApi/RecordApi/save',
    method: 'post',
    data
  })
}

// 谈案开始
export function setStart(data) {
  return request({
    url: 'externalApi/OaVisit/setStart',
    method: 'post',
    data
  })
}
